package com.nameless.feign;

import com.nameless.entity.Brand;
import com.nameless.entity.Car;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 汽车fegin
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2023/02/28 15:09
 * @Description
 */
@FeignClient("car-cars")
public interface CarsFegin {
    /**
     * 得到汽车通过商店id
     *
     * @param shopId 商店id
     * @return {@link List}<{@link Car}>
     */
    @GetMapping("/cars/car/getCarByShopId/{shopId}")
    List<Car> getCarByShopId(@PathVariable Integer shopId);

    /**
     * 被商店品牌标识
     *
     * @param shopId 商店id
     * @return {@link List}<{@link Brand}>
     */
    @GetMapping("/cars/car/getBrandByShopId/{shopId}")
    List<Brand> getBrandByShopId(@PathVariable Integer shopId);
}
